package org.nuonuo.sdk.callback;

import org.nuonuo.sdk.model.base.NLog;

/**
 * @Version 1.0
 * @Author az
 * @Date 2024-04-09 10:55:21
 * @ClassName NCallback
 * @Description
 */
@FunctionalInterface
public interface NCallback {
    void accept(NLog log);

    /**
     * 函数执行
     *
     * @param callback
     */
    static void execute(NCallback callback, NLog log) {
        if (callback == null) return;
        callback.accept(log);
    }
}
